window: Fix an event widget/target mixup
authorTimm Bäder <mail@baedert.org>
Thu, 4 Jan 2018 12:16:24 +0000 (13:16 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 4 Jan 2018 12:16:24 +0000 (13:16 +0100)
This makes dragging inside a GtkEntry in the window decoration work
again.

gtk/gtkwindow.c

index 932f52f0c8ac79738674c8d9665c54064c051407..910264e139f60c107a88ff8456594f1167e3cf90 100644 (file)
@@ -1619,7 +1619,7 @@ drag_gesture_update_cb (GtkGestureDrag *gesture,
 
       sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
       event = gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence);
-      event_widget = gtk_get_event_widget ((GdkEvent *) event);
+      event_widget = gtk_get_event_target (event);
 
       /* Check whether the target widget should be left alone at handling
        * the sequence, this is better done late to give room for gestures